package com.x.aoki.order.zk.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

/**
 * @author caoy
 * @date 2025-02-17 11:40:27
 */
@RestController
public class OrderZkController {

    private static final String INVOKER_URL = "http://x-payment-provider";

    @Resource
    private RestTemplate restTemplate;

    @GetMapping("/consumer/zk")
    public String paymentInfo() {
        return restTemplate.getForObject(INVOKER_URL + "/payment/zk", String.class);
    }


}
